﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mang
{
    public abstract class ThuatToanSapXep<T>
    {
        virtual public void SapXep(T[] a, int n)
        {
            return;
        }
        virtual public void SapXep(T[] a, int n, TieuChiSapXep<T> tc)
        {
            return;
        }

        public void HoanVi(ref T a, ref T b)
        {
            T temp = a;
            a = b;
            b = temp;
        }
    }
}
